package com.sren.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * @author: renshuai
 * @date: 2019/11/20 下午5:11
 * @Description:
 */
@SpringBootApplication
@ServletComponentScan("com.sren.boot.servlet")
public class App {
	public static void main(String[] args) {
		new SpringApplicationBuilder(App.class)
				.web(WebApplicationType.NONE)
				.run(args);
		//SpringApplication.run(App.class, args);
	}

}
